package com.zp.drug.service;

import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;
import com.zp.drug.entity.bo.DrugStockAllLogBo;
import com.zp.drug.entity.bo.DrugStockBo;
import com.zp.drug.entity.vo.DrugStockAllLogParamVo;
import com.zp.drug.entity.vo.DrugStockAllLogVo;

import java.util.Collection;
import java.util.List;

/**
 * 药品库存流转记录Service接口
 *
 * @author zhang peng
 * @ date 2023-10-31
 */
public interface IDrugStockAllLogService {

    /**
     * 查询药品库存流转记录
     */
    DrugStockAllLogVo queryById (String id);

    /**
     * 查询药品库存流转记录列表(分页)
     */
    TableDataInfo<DrugStockAllLogVo> queryPageList (DrugStockAllLogBo bo, PageQuery pageQuery);

    /**
     * 查询药品库存流转记录列表(不分页)
     */
    List<DrugStockAllLogVo> queryList (DrugStockAllLogBo bo);

    /**
     * 修改药品库存流转记录
     */
    Boolean insertByBo (DrugStockAllLogBo bo);

    /**
     * 修改药品库存流转记录
     */
    Boolean updateByBo (DrugStockAllLogBo bo);

    /**
     * 校验并批量删除药品库存流转记录信息
     */
    Boolean deleteWithValidByIds (Collection<String> ids, Boolean isValid);


    Boolean save (DrugStockBo bo);


    Boolean caseRecordTypeSave(DrugStockAllLogParamVo bo);
}
